<template>
  <div class="Digit">
    <digit-input
      class="digit-input-container"
      maxlength="10"
      placeholder="请输入数字"
      :value="amount"
      @input="handleInput">
    </digit-input>
  </div>
</template>

<script>
import DigitInput from '@/components/DigitInput.vue'

export default {
  name: 'Digit',
  data () {
    return {
      amount: 3,
      verify: 2
    }
  },
  components: {
    DigitInput
  },
  methods: {
    handleInput (value) {
      this.amount = value
    }
  }
}
</script>
